import request from '@/utils/request'


export function getList(data = {}) {
  return request({
    url: '/workbench/attend-duty-shift/list',
    method: 'get',
    params: data
  })
}

export function getDetail(data = {}) {
  return request({
    url: '/workbench/attend-duty-shift/detail',
    method: 'get',
    params: data
  })
}

export function del(data = {}) {
  return request({
    url: '/workbench/attend-duty-shift/remove',
    method: 'get',
    params: data
  })
}


export function add(data = {}) {
  return request({
    url: '/workbench/attend-duty-shift/create',
    method: 'post',
    data
  })
}

export function update(data = {}) {
  return request({
    url: '/workbench/attend-duty-shift/update',
    method: 'post',
    data
  })
}